package com.mythread;

public class MyThread {
    public static void main(String[] args) {
        My m1=new My();
        My m2=new My();
        m1.start();
        m2.start();
    }

}
class My extends  Thread{
    public void run(){
        for (int i = 0; i <100 ; i++) {
            System.out.println(this+"  -------------  "+i);
        }
    }

}
